﻿using System;

namespace HttpCrawler
{
    public static class UriExtensions
    {
        public static bool IsOriginSimilar(this Uri baseUri, Uri compareTo)
        {
            return baseUri.Scheme == compareTo.Scheme && baseUri.Host == compareTo.Host && baseUri.Port == compareTo.Port;
        }
    }
}
